package logger

import (
	"fmt"
)

func Init(debug bool, console bool, logFilePath string) {
	logConf := LogConfig{
		Filename:   logFilePath,
		LogRotate:  true,
		MaxSize:    100,
		MaxDays:    5,
		MaxBackups: 10,
		Console:    console,
	}
	if debug {
		SetLevel(DebugLevel)
	} else {
		SetLevel(InfoLevel)
	}
	InitLogger(logConf)
	fmt.Println("logger init finished")
}
